import enum

Season = enum.Enum('Season', ('Spring', 'Summer'))
print(Season.Spring.name)
print(Season.Spring.value)
print(Season(1))
print(Season['Spring'])
for name, member in Season.__members__.items():
    print(name, '==>', member, ',', member.value)
